package com.lintf.jwt.service.impl;

import com.lintf.jwt.dao.UserMapper;
import com.lintf.jwt.entity.UserPermissions;
import com.lintf.jwt.service.UserPermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ system:Window
 * @ author:lin tingfeng
 * @ data:2022/3/15-17:19
 * @ package_name:com.lintf.jwt.service.impl
 * @ project_name:SpringSecurity-JWT
 * @ desc:权限接口实现类
 */
@Service
public class UserPermissionsServiceImpl implements UserPermissionsService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<UserPermissions> selectUserPermissions(String username) {
        return userMapper.selectUserPermissions(username);
    }
}
